package main

import (
	log "github.com/sirupsen/logrus"
	"github.com/urfave/cli"
	"os"
)

func main() {
	app := &cli.App{
		Name:    "flush_downloader",
		Version: "0.0.1",
		Flags: []cli.Flag{
			&cli.StringFlag{
				Name:     "url",
				Value:    "",
				Usage:    "url to download",
				Required: true,
			},
		},
		Action: func(c *cli.Context) error {
			err := run(c)

			return err
		},
	}
	err := app.Run(os.Args)
	if err != nil {
		log.Fatal(err)
	}
}
